package com.gylang.im.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author gylang,
 * date 2020/5/2,
 * @version 1.0
 */
@Getter
@AllArgsConstructor
public enum AuthEnums implements BaseEnum {
    /**
     * code 和 msg
     */
    USER_EMPTY("auth_0001", "账户不能为空"),

    PASSWORD_EMPTY("auth_0002", "密码不能为空"),

    USER_NOT_FOUND("auth_0003", "用户不存在"),

    USER_STOP("auth_0004", "用户已冻结"),

    USERNAME_PASSWORD_ERROR("auth_0005", "用户名或密码不正确"),
    USER_NOT_LOGIN("auth_0006", "请先登录"),
    USER_NOT_RIGHT("auth_0007", "无权访问"),
    INSERT_REFRESH_TOKEN_ERROR("auth_0009", "插入refreshToken失败"),
    USER_HAD_REGISTER("auth_0010", "用户已存在"),
    USER_NOT_HAVE_EVERY_PERMISSION("auth_0011", "该用户无任何权限"),
    ;

    private String code;
    private String msg;
}
